Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
Set item on v-select through a button press -> @change is not triggered

I have a button

<v-btn
  v-if="getEnviroment"
  @click="fillOther"
>
  fillOther
</v-btn>

on the page visible only for local host. A click on this button should select the first element of the v-select.

Setting the item is simple:

fillOther () {
  this.inputForm.tsi = 69
}

The issue is, that the @change Event is not triggered through this.

How can i tigger the @change event on the v-select?

<v-select
  id="TsiAuswahl"
  v-model.trim="inputForm.tsi"
  :items="tsiItems"
  label="Leistungsart"
  item-text="anzeigetext"
  item-value="wert"
  data-test="tsi"
  :return-object="false"
  @change="onChangeTSI"
>
  <template
    v-slot:item="{item }"
  >
    <span :id="'tsiSelect_listItem_' + item.id">{{ item.anzeigetext }}</span>
  </template>
</v-select>

Thank you in advance!

about 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda